package work;

import javax.swing.*;

//鱼雷
public class Tp extends SeaObject{
    public Tp(int x,int y){
        super(5,18,x,y,1);
    }
    @Override
    public void move() {
        y-=speed;
    }
    /** 重写getImage()获取图片 */
    public ImageIcon getImage(){
        return images.torpedo;
    }
}
